// Service used for ngResouce and routing

blogApp.factory("Entering", [ '$resource', function ($resource) {
    return $resource("entries/:listController:entryId/:docController",
        {
            entryId : "@id",
            listController: "@listController",
            docController: "@docController"
        },
        {
            'update': {
                method:'put',
                params: {
                    docController:'updateEntry'
                }
            },
            'add': {
                method:'post',
                params: {
                    listController:'addEntry'
                    }
            }
        });
}]);